const dics = {
  recordStatus: [
    {
      label: "未标注",
      value: "1",
    },
    {
      label: "标注中",
      value: "2",
    },
    {
      label: "打回重标",
      value: "3",
    },
    {
      label: "待审核",
      value: "4",
    },
    {
      label: "已归档",
      value: "5",
    },
    {
      label: "审核丢弃",
      value: "6",
    },
  ],
};

export const getOptTxt = (key: string, value: any) => {
  let cur: any = dics[key].find((item: any) => {
    return item.value == value;
  });
  return cur?.label || "暂无";
};

export function useDic(key: string) {
  let opts = dics[key];
  return {
    opts,
  };
}
